Skip to content

fix(automations): Name every task field problem in one rejection - #3994

Merged
dcramer merged 1 commit into
mainfrom
fix-flaky/automation-task-input-errors
Nov 22, 2026
Merged

dcramer merged 1 commit into
mainfrom
fix-flaky/automation-task-input-errors

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Nov 22, 2026

Copy link
Copy Markdown
Contributor

createAutomation and updateAutomation rejected bad task fields one problem at a time. A call that sets instruction, skill, and context together, with "this channel" in the instruction, has three problems, so the model needed three rejected calls to fix it. In run 44969506566 those extra model steps used up the 60-second idle budget of event-automations/management.eval.ts > "when a resource supports the requested event, create the requested event automation".

The tools now check the task mode and every given text field (instruction and context) together, and reject once with all of the problems. When all three fields are set, the mode message also says that context goes only with a skill, so dropping skill alone does not lead to another rejection. The dashboard edit API keeps using requireAutomationTaskText unchanged.

via @dcramer.

--

View Session [Sentry]

createAutomation and updateAutomation rejected bad task fields one problem
at a time. A call that set instruction, skill, and context, with "this
channel" in the instruction, took three rejections to fix, and each one
cost the model another call. Check the mode and every given text together
and reject once with all of the problems.
@vercel

vercel Bot commented Nov 22, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
junior-docs Ready Ready Preview Nov 22, 2026 2:04am UTC

Request Review

@sentry-junior
sentry-junior Bot force-pushed the fix-flaky/automation-task-input-errors branch from 4e419c5 to d86fba9 Compare November 22, 2026 02:23
@sentry-junior
sentry-junior Bot marked this pull request as ready for review November 22, 2026 02:27
@sentry-junior
sentry-junior Bot requested a review from dcramer November 22, 2026 02:27
@github-actions github-actions Bot added the risk: high PR risk score: high label Nov 22, 2026
@github-actions

Copy link
Copy Markdown
Contributor

7 screenshot changes — 7 changed · 0 added · 0 removed

Review screenshots in Frameshift

Automations Runs Filters · Desktop
Automations Runs Filters · Desktop
Changed
Conversation Event Log Virtual · Mobile
Conversation Event Log Virtual · Mobile
Changed
Conversation Header Auto Archive · Mobile
Conversation Header Auto Archive · Mobile
Changed
Conversation Unsent Answers · Desktop
Conversation Unsent Answers · Desktop
Changed
Inbox Palette Pages · Desktop
Inbox Palette Pages · Desktop
Changed
System Cache Health 24h · Desktop
System Cache Health 24h · Desktop
Changed
Show 1 more changed screenshot
System Cache Warming · Desktop
System Cache Warming · Desktop
Changed

@dcramer
dcramer merged commit fb7b240 into main Nov 22, 2026
59 checks passed
@dcramer
dcramer deleted the fix-flaky/automation-task-input-errors branch November 22, 2026 02:38

This branch was successfully deployed

1 active deployment
Preview – junior-docs — d86fba9e Deployed Nov 22, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk: high PR risk score: high

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant